<a href="{$item->file_data->url}" class="lightbox" rel="gallery{$gallery->gallery_name}" title="{$item->file_name}"><img src="{$item->file_data->thumb}" alt="" /></a>